package com.twu.biblioteca.utilities;

public class MessagePrinter {
    private static final String WELCOME_MESSAGE = "Hello guest. Welcome to Biblioteca!";
    private static final String MENU = "Menu\n" +
            "1. List Books\n" +
            "2. Checkout Book\n" +
            "3. Return Book\n" +
            "4. List Movies\n" +
            "5. Checkout Movie\n" +
            "6. Who checked out Book\n" +
            "7. Print my info\n" +
            "0. Quit";

    public void printSuccessLoginMessage() {
        System.out.println("Login successfull.");
    }

    public void printErrorLoginMessage() {
        System.out.println("Invalid library number and/or password. Please try again");
    }

    public void printSuccessCheckoutMessage(String type) {
        System.out.println(String.format("Thank you! Enjoy the %s", type));
    }

    public void printErrorCheckoutMessage(String type) {
        System.out.println(String.format("That %s is not available", type));
    }

    public void printSuccessReturnMessage(String type) {
        System.out.println(String.format("Thank you for returning the %s.", type));
    }

    public void printErrorReturnMessage(String type) {
        System.out.println(String.format("That is not a valid %s to return.",type));
    }

    public void printWelcomeMessage() {
        System.out.println(WELCOME_MESSAGE);
    }

    public void printMenu() {
        System.out.println(MENU);
    }
}
